package com.zhang.novel.service;

import com.zhang.novel.entity.Author;

public interface AuthorService {
    /**
     * 校验笔名是否存在
     * @param penName
     * @return
     */
    Boolean checkPenName(String penName);

    /**
     * 查询作家信息
     * @param authorId
     * @return
     */
    Author queryAuthor(Long authorId);

    /**
     * 作家注册
     * @param userId
     * @param author
     * @return
     */
    String register(Long userId,Author author);

    /**
     * 判断是否是作家
     * @param userId
     * @return
     */
    Boolean isAuthor(Long userId);
}
